//
//  Noise.h
//  pipi
//
//  Created by zhao ys on 5/14/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

@interface SoundManager : NSObject <AVAudioPlayerDelegate>{
	NSMutableDictionary * _players;
}
+(SoundManager*) sharedManager;

-(BOOL) loadSound:(NSString *)file withName:(NSString*)indent;
-(BOOL) loadSound:(NSString *)file ofType:(NSString*)type withName:(NSString*)indent;
-(BOOL) unloadSound:(NSString*)indent;
-(BOOL) play:(NSString*)player loops:(int)loops;
-(BOOL) stop:(NSString*)player;
@end
